package chen.web.config.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import chen.web.antispam.CaptchaStore;

import com.google.code.kaptcha.Producer;

@Configuration
public class CaptchaStoreConfig {

	@Autowired Producer captchaProducer;
	
	public @Bean CaptchaStore captchaStore(){
		return new CaptchaStore(captchaProducer);
	} 
}
